//
//  NSString+GQHFormatter.h
//  Seed
//
//  Created by GuanQinghao on 16/01/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface NSString (GQHFormatter)

/// 手机号隐藏格式化 (保留前三位后四位)
+ (NSString *)qh_formatterSecretStringWithMobile:(NSString *)mobile;
/// 银行卡／信用卡格式化 (保留前四位后四位)
+ (NSString *)qh_formatterSecretStringWithCardNumber:(NSString *)cardNumber;
/// 数量转中文单位
+ (NSString *)qh_formatterChineseAmountStringWithValue:(CGFloat)value;
/// 添加货币千位分隔符
+ (NSString *)qh_formatterCurrencyString:(NSString *)amountString;
/// 数字字符串NSString转为数字NSNumber
+ (NSNumber *)qh_formatterWithNumberString:(NSString *)numberString;
/// 计算文本的大小
- (CGSize)qh_formatterSizeWithFont:(UIFont *)font maxSize:(CGSize)maxSize;
/// 时间戳格式化为时间差
+ (NSString *)qh_formatterTimeDifferenceWith:(NSTimeInterval)timeStamp;
/// 时间戳格式化为指定日期格式
+ (NSString *)qh_formatterDateWithTimeStamp:(NSTimeInterval)timeStamp formatter:(NSString *)formatter;
/// 规定日期格式转为日期时间格式 (yyyy-MM-dd HH:mm:ss)
+ (NSDate *)qh_formatterDateWithDateString:(NSString *)dateString;

@end
